<template>
  <div>
    <!-- 单选 -->
    <div v-if="form.type==='1'">
      <div v-for="(i,index) in form.select_options" :key="index" class="item">
        <el-radio v-model="form.single_select_answer" :label="i.label">{{ i.label }}</el-radio>
        <el-input v-model="i.text" />
      </div>
    </div>
    <!-- 多选 -->
    <div v-if="form.type==='2'">
      <div v-for="(i,index) in form.select_options" :key="index" class="item">
        <el-checkbox v-model="form.multiple_select_answer" :label="i.label">{{ i.label }}</el-checkbox>
        <el-input v-model="i.text" />
      </div>
    </div>
    <!-- 简答 -->
    <el-input v-else v-model="form.short_answer" type="textarea" />

  </div>
</template>
<script>
export default {
  props: {
    form: Object
  }
}
</script>
<style>
.item{
    display: flex;
    align-items: center;
}
</style>
